<!doctype html>
<html lang="en">

<head>
	<meta charset="utf-8"/>
	<title>Farmácia Ativa</title>
	
	
	<?php echo $this->Html->css('/html5/css/layout.css') ?>
	<!--[if lt IE 9]>
	<link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" />
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
	
	<?php echo $this->Html->script('/html5/js/hideshow.js'); ?>
	<?php echo $this->Html->script('/html5/js/jquery.tablesorter.min.js'); ?>
	<?php echo $this->Html->script('/html5/js/jquery.equalHeight.js'); ?>

	<script type="text/javascript">
	$(document).ready(function() 
    	{ 
      	  $(".tablesorter").tablesorter(); 
   	 } 
	);
	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    </script>
    <script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

</head>


<body>

	<header id="header">
		<hgroup>
			<h1 class="site_title"><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'index')) ?>">Farmácia Ativa</a></h1>
			<h2 class="section_title">Dashboard</h2><div class="btn_view_site"><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'logout')) ?>">Logout</a></div>
		</hgroup>
	</header> <!-- end of header bar -->
	
	<section id="secondary_bar">
		<div class="user">
			<p><?php echo AuthComponent::user('name') ?></p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
	</section><!-- end of secondary bar -->
	
	<aside id="sidebar" class="column">
		<hr/>
		<h3>Usuários</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'add')) ?>">Adicionar Usuário</a></li>
			<li class="icn_view_users"><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'index')) ?>">Listar Usuários</a></li>
		</ul>
		<h3>Grupos</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="<?php echo $this->Html->url(array('controller' => 'Groups', 'action' => 'add')) ?>">Adicionar Grupo</a></li>
			<li class="icn_view_users"><a href="<?php echo $this->Html->url(array('controller' => 'Groups', 'action' => 'index')) ?>">Listar Grupos</a></li>
		</ul>
		<h3>Compras</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="<?php echo $this->Html->url(array('controller' => 'DrugsPurchaseds', 'action' => 'add')) ?>">Adicionar Nova Compra</a></li>
			<li class="icn_tags"><a href="<?php echo $this->Html->url(array('controller' => 'DrugsPurchaseds', 'action' => 'index')) ?>">Listar Compras Efetuadas</a></li>
		</ul>
		<h3>Medicamentos</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="<?php echo $this->Html->url(array('controller' => 'Drugs', 'action' => 'add')) ?>">Adicionar Novo remédio</a></li>
			<li class="icn_tags"><a href="<?php echo $this->Html->url(array('controller' => 'Drugs', 'action' => 'index')) ?>">Listar Remédio</a></li>
		</ul>
		<h3>Vendas</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="<?php echo $this->Html->url(array('controller' => 'SalesDrugs', 'action' => 'add')) ?>">Adicionar Nova venda</a></li>
			<li class="icn_tags"><a href="<?php echo $this->Html->url(array('controller' => 'SalesDrugs', 'action' => 'index')) ?>">Listar vendas</a></li>
		</ul>
		<h3>Admin</h3>
		<ul class="toggle">
			<li class="icn_jump_back"><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'logout')) ?>">Logout</a></li>
		</ul>
		
		<footer>
		</footer>
	</aside><!-- end of sidebar -->
	
	<section id="main" class="column">
		<?php echo $content_for_layout ?>
		
	</section>


</body>

</html>